<?php

namespace App\Http\Controllers\Recharge;

use App\Http\Controllers\Controller;
use App\Models\User;

class BaseController extends Controller{

    public $user;

    public function __construct(){
        $open_id = \Request::cookie('open_id');
        $decrypted = decrypt($open_id);

        $this->user = User::where('open_id', $decrypted)->first();
    }

}
